import request from '../request.js'

// 根据订单状态，请求不同订单状态的订单列表
export function getOrderListByStatus(status) {
    return request({
        url: '/shop/order/list/' + localStorage.getItem('account') + '/' + status,
        method: 'get'
    })
}
// 根据订单id获取订单信息
export function getOrderInfoById(id) {
    return request({
        url: '/shop/order/info/' + id,
        method: 'get'
    })
}

export function payOrderById(data) {
    return request({
        url: '/shop/pay/order',
        method: 'post',
        data: data
    })
}

